package com.lzy.cloud.push.umeng.base;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:/props/umpush.properties")
public class UMengConfig {

    private final static UMengConfig config = new UMengConfig();

    @Value("${uMeng.appKey}")
    private String appKey;

    @Value("${uMeng.messageSecret}")
    private String messageSecret;

    @Value("${uMeng.masterSecret}")
    private String masterSecret;

    @Value("${uMeng.USER_AGENT}")
    private String USER_AGENT;
    @Value("${uMeng.host}")
    private String host;
    @Value("${uMeng.uploadPath}")
    private String uploadPath;

    @Value("${uMeng.iosappKey}")
    private String iosAppKey;

    @Value("${uMeng.appMasterSecret}")
    private String iosAppMasterSecret;

    public String getIosAppKey() {
        return iosAppKey;
    }

    public void setIosAppKey(String iosAppKey) {
        this.iosAppKey = iosAppKey;
    }

    public String getIosAppMasterSecret() {
        return iosAppMasterSecret;
    }

    public void setIosAppMasterSecret(String iosAppMasterSecret) {
        this.iosAppMasterSecret = iosAppMasterSecret;
    }

    public String getUSER_AGENT() {
        return USER_AGENT;
    }

    public void setUSER_AGENT(String USER_AGENT) {
        this.USER_AGENT = USER_AGENT;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getPostPath() {
        return postPath;
    }

    public void setPostPath(String postPath) {
        this.postPath = postPath;
    }

    @Value("${uMeng.postPath}")
    private String postPath;

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getMessageSecret() {
        return messageSecret;
    }

    public void setMessageSecret(String messageSecret) {
        this.messageSecret = messageSecret;
    }

    public String getMasterSecret() {
        return masterSecret;
    }

    public void setMasterSecret(String masterSecret) {
        this.masterSecret = masterSecret;
    }

}
